<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>蚂蚁鲜生</title>
</head>
<body>
<script src="./js/vendor/jquery/1.11.3/jquery.min.js"></script>
<script src="./js/lib/urlGet.js"></script>
<script>
    var user = $.urlGet()
    var params = {}
//    console.log(user)
    window.localStorage.removeItem('phone')
    params.openid = user.openid
    params.platform = user.platform
    params.redirect = $.urlGet()['redirect']
    window.localStorage.user = JSON.stringify(params)
    window.localStorage.phone = JSON.parse(decodeURIComponent(params.redirect)).phone
//    window.localStorage.phone = ''
    console.log(JSON.parse(decodeURIComponent(params.redirect)))
//如果有分享id跳转分享页面
    if(JSON.parse(decodeURIComponent(params.redirect)).share_id){
        window.location.href = './getPaper.html'
    }else {
        window.location.href = './index.html'
    }
</script>
</body>
</html>
